<!DOCTYPE html>
{% load static %}
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    {% block title %}
        <title>登陆|MYCRM</title>
    {% endblock title %}
    <link rel="stylesheet" href="{% static 'css/style.css' %}">
    {% block custom_css %}

    {% endblock custom_css %}
</head>
<body>
<div class="login-container">
    {% block head %}
        <h1>CRM</h1>
        <div class="connect">
            <p style="left: 0%;">Link the world. Share to world.</p>
        </div>
    {% endblock head %}
    {% block content %}
        <form action="{% url 'sales:login' %}" method="post" id="loginForm"
              novalidate="novalidate">

            {% csrf_token %}
            {% for field in login_form %}
                <div>
                    {{ field }}
                    <span class="text-danger">{{ field.errors.0 }}</span>
                </div>
            {% endfor %}
            <button id="submit" type="submit">登 陆</button>
        </form>
        <a href="{% url 'sales:register' %}">
            <button type="button" class="register-tis">还有没有账号？</button>
        </a>
    {% endblock content %}
</div>

<script src="{% static 'js/jquery.min.js' %}"></script>
<script src="{% static 'js/common.js' %}"></script>
<script src="{% static 'js/supersized.3.2.7.min.js' %}"></script>
<script src="{% static 'js/supersized-init.js' %}"></script>
<script src="{% static 'js/jquery.validate.min.js' %}"></script>
{% block custom_js %}
{% endblock custom_js %}

</body>
<div id="cVim-status-bar" style="top: 0px;"></div>
</html>